package com.pojo;

import jakarta.validation.constraints.*;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;


import java.math.BigDecimal;
import java.util.Date;
@Data
public class Product {
    private Long id;

    @NotEmpty
    private String name;

    private String description;

    @DecimalMin("0.01")
    private BigDecimal price;

    @Min(0)
    private Integer stock;

    private String imageUrl;

    private Long categoryId;

    private Integer status;

    private Date createdAt;
}

